package gtkwire.widget.utils;

/**
* Predefined values for use as response ids in gtk_dialog_add_button(). 
*/
public class GtkResponse
{

	/**
	* Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed.
	*/
	public static final GtkResponse NONE = new GtkResponse( -1 );
		
	
	/**
	* Generic response id, not used by GTK+ dialogs.
	*/
	public static final GtkResponse REJECT = new GtkResponse( -2 );
	
	
	/**
	* Generic response id, not used by GTK+ dialogs.
	*/
	public static final GtkResponse ACCEPT = new GtkResponse( -3 );
	
	
	/**
	* Returned if the dialog is deleted.
	*/
	public static final GtkResponse DELETE_EVENT = new GtkResponse( -4 );
		
	
	/**
	* Returned by OK buttons in GTK+ dialog
	*/
	public static final GtkResponse OK = new GtkResponse( -5 );
	
	
	/**
	* Returned by Cancel buttons in GTK+ dialogs.
	*/
	public static final GtkResponse CANCEL = new GtkResponse( -6 );
	
	
	/**
	* Returned by Close buttons in GTK+ dialogs.
	*/
	public static final GtkResponse CLOSE = new GtkResponse( -7 );
	
	
	/**
	* Returned by Yes buttons in GTK+ dialogs.
	*/
	public static final GtkResponse YES = new GtkResponse( -8 );
	
	
	/**
	* Returned by No buttons in GTK+ dialogs.
	*/
	public static final GtkResponse NO = new GtkResponse( -9 );
	
	
	/**
	* Returned by Apply buttons in GTK+ dialogs.
	*/
	public static final GtkResponse APPLY = new GtkResponse( -10 );
	
	
	/**
	* Returned by Help buttons in GTK+ dialogs.
	*/
	public static final GtkResponse HELP = new GtkResponse( -11 );

	private int mode;

	private GtkResponse( int mode )
	{
		this.mode = mode;
	}

	public boolean isMatch( int val )
	{
		if( val == mode ) return true;
		return false;
	}

}//end class
